package com.dimples.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户角色关联
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/29
 */
@ApiModel(value = "com-dimples-system-entity-UserRole")
@Data
@TableName(value = "t_user_role")
public class SysUserRole {
    /**
     * 用户ID
     */
    @TableId(value = "USER_ID", type = IdType.INPUT)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 角色ID
     */
    @TableField(value = "ROLE_ID")
    @ApiModelProperty(value = "角色ID")
    private Long roleId;
}